﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;

namespace csla4Skeleton.UI.SL.Reports.BanHang
{
    public partial class Sales_SalesBook_OneInventoryReport : ChildWindow
    {
        DateTime pFromDate;
        DateTime ToDate;
        int HangHoa;
        public Sales_SalesBook_OneInventoryReport(DateTime FromDate, DateTime ToDate, int HangHoa)
        {
            StyleManager.ApplicationTheme = new Office_BlackTheme();
            InitializeComponent();
            this.pFromDate = FromDate;
            this.ToDate = ToDate;
            this.HangHoa = HangHoa;
            this.ReportViewer1.RenderBegin += new Telerik.ReportViewer.Silverlight.RenderBeginEventHandler(ReportViewer1_RenderBegin);
            this.ReportViewer1.Report = "ReportLibrary.Sales.Sales_SalesBook_OneInventory, ReportLibrary";
        }

        void ReportViewer1_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
        {
            args.ParameterValues["p_FromDate"] = pFromDate;
            args.ParameterValues["p_ToDate"] = ToDate;
            args.ParameterValues["p_InventoryId"] = HangHoa;
        }
    }
}

